From 0cfd48a80edf92e9e8569674c26c9fa7f230b1f2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 11 May 2001 22:24:59 +0000 Subject: [PATCH] Expose the ring in the triangle at the correct place when exposing just a 2001-05-11 Alexander Larsson * gtk/gtkhsv.c (paint_triangle): Expose the ring in the triangle at the correct place when exposing just a part of the triangle. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkhsv.c | 4 ++-- 8 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 259100eac9..416f08709c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 259100eac9..416f08709c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2001-05-11 Alexander Larsson + * gtk/gtkhsv.c (paint_triangle): + Expose the ring in the triangle at the correct place when + exposing just a part of the triangle. + * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change): Return FALSE, or window focusing will not work. diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index 2f8b0a0861..6eecde7c3f 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -1265,8 +1265,8 @@ paint_triangle (GtkHSV *hsv, /* Draw value marker */ - xx = floor (sx + (vx - sx) * priv->v + (hx - vx) * priv->s * priv->v + 0.5); - yy = floor (sy + (vy - sy) * priv->v + (hy - vy) * priv->s * priv->v + 0.5); + xx = floor (sx + (vx - sx) * priv->v + (hx - vx) * priv->s * priv->v + 0.5) - x; + yy = floor (sy + (vy - sy) * priv->v + (hy - vy) * priv->s * priv->v + 0.5) - y; r = priv->h; g = priv->s; -- 2.30.2